public static function assert($value, $varName) {
        NotNil::assert($value, $varName);
        return !is_string($value) ? Exceptions::InvalidTypeException('string', $varName, $value) : $value;
    }