function array_keylist_exists($keylist, $haystack){
if(is_array($keylist)){
foreach($keylist as $index => $key){
if(!array_key_exists($key, $haystack)){
echo "$key does not exist in $haystack, terminating array_keylist_exists()
\n";
return false;
}
}
} else {
echo "Wrong datatype(".gettype($keylist).") for 'array_keylist_exists();' make it an array!
\n";
return false;
}
return true;
}