Refactoring static function check