public function has($needle, bool $strict = true): bool
    {
        foreach ($this->values as $value) {
            if ($strict && $value === $needle) {
                return true;
            }

            if ($strict && $value == $needle) {
                return true;
            }
        }

        return false;
    }
public function has($needle, bool $strict = true): bool
    {
        foreach ($this->values as $value) {
            if ($strict && $value === $needle) {
                return true;
            }

            if ($strict && $value == $needle) {
                return true;
            }
        }

        return false;
    }
public function has ( $ needle , bool $ strict = true ) : bool { foreach ( $ this -> values as $ value ) { if ( $ strict && $ value === $ needle ) { return true ; } if ( $ strict && $ value == $ needle ) { return true ; } } return false ; }
Check if value presented in array.

@param mixed $needle
@param bool  $strict

@return bool
Check if value presented in array .