Added interface_exists checks alongside class_exists to verify autoloader