checking internal php functions instead of using function_exists