function_exists returns false on NULL and empty string:
<?php
if (function_exists('')) {
echo "empty string function exists\n";
}
if (function_exists(NULL)) {
echo "NULL function exists\n";
}
?>
Neither of the echo statements happen when I run this.