method_exists optimizer [ci skip]