private static function checkConst($const, $value) { return defined($const) && constant($const) === $value; }