public static function defineCheck(string $method, callable $function)
    {
        if (function_exists($method)) {
            throw new \InvalidArgumentException('Can not overwrite internal PHP function ' . $method . '().');
        }

        self::$checks[$method] = $function;
    }