src/ValidationField.php
public function hasVal($key) {
        return isset($this->field[$key]) || (is_array($this->field) && array_key_exists($key, $this->field));
    }
public function hasVal($key) {
        return isset($this->field[$key]) || (is_array($this->field) && array_key_exists($key, $this->field));
    }
public function hasVal ( $ key ) { return isset ( $ this -> field [ $ key ] ) || ( is_array ( $ this -> field ) && array_key_exists ( $ key , $ this -> field ) ) ; }
Whether or not the field has a value.

@param string $key The key to look at.
@return bool Returns **true** if the field has a key or **false** otherwise.
Whether or not the field has a value .