Improve check on Methods\Factory::create method