[*] function_exists improvement

better check, by phpjs.org : http://phpjs.org/functions/function_exists/