src/models/UserSetting.php
public function has($key)
    {
        $array = $this->data;
        foreach (explode(self::SEPERATOR, $key) as $item) {
            if (is_array($array) && array_key_exists($item, $array)) {
                $array = $array[$item];
            } else {
                return false;
            }
        }

        return true;
    }
public function has($key)
    {
        $array = $this->data;
        foreach (explode(self::SEPERATOR, $key) as $item) {
            if (is_array($array) && array_key_exists($item, $array)) {
                $array = $array[$item];
            } else {
                return false;
            }
        }

        return true;
    }
public function has ( $ key ) { $ array = $ this -> data ; foreach ( explode ( self :: SEPERATOR , $ key ) as $ item ) { if ( is_array ( $ array ) && array_key_exists ( $ item , $ array ) ) { $ array = $ array [ $ item ] ; } else { return false ; } } return true ; }
Check if an element existing inside the user settings or not.

@param string $key
@return boolean
Check if an element existing inside the user settings or not .