popsyjunior: that is not correct. Just because the array is not empty does not mean that it contains an element with that particular key. It should be:
if (!empty($profile_array['age'])) { // isset may be better
$profile_array['age'];
}
But this is different from checking if a value is present in an array.