Added some exists check optimizers.

Added file_exists, function_exists, class_exists, interface_exists using internal function and compatible PHP userland functions.