fixing extra space in function_exists check