checks if files exist before require_once() in autoload