Added function_exists and event_exists.
Made function_exists and event_exists optimized functions.
Merge pull request #197 from EntityReborn/master

Added function_exists and event_exists.