public function is($key, $compareWith = true, $strictMode = false)
    {
        if (strpos($key, '.') === false) {
            $value = $this->get($key);
        } else {
            $value = $this->find($key);
        }

        if ($strictMode) {
            return $value === $compareWith;
        }

        /** @noinspection TypeUnsafeComparisonInspection */
        return $value == $compareWith;
    }
public function is($key, $compareWith = true, $strictMode = false)
    {
        if (strpos($key, '.') === false) {
            $value = $this->get($key);
        } else {
            $value = $this->find($key);
        }

        if ($strictMode) {
            return $value === $compareWith;
        }

        /** @noinspection TypeUnsafeComparisonInspection */
        return $value == $compareWith;
    }
public function is ( $ key , $ compareWith = true , $ strictMode = false ) { if ( strpos ( $ key , '.' ) === false ) { $ value = $ this -> get ( $ key ) ; } else { $ value = $ this -> find ( $ key ) ; } if ( $ strictMode ) { return $ value === $ compareWith ; } /** @noinspection TypeUnsafeComparisonInspection */ return $ value == $ compareWith ; }
Compare value by key with somethig

@param string $key
@param mixed  $compareWith
@param bool   $strictMode
@return bool

@SuppressWarnings(PHPMD.ShortMethodName)
Compare value by key with somethig