Fix autoload issues with method_exists