Okay, so I wrote a function to test if an array key has a value and return it, or else, return a value from the POST array, the problem is, since some of the are undefined,