Replaced function_exists dependency checking with extension_loaded

Added GD, JSON, and SimpleXML