src/Mappable.php
public function hasMapping($key)
    {
        if (is_null($this->mappedAttributes)) {
            $this->parseMappings();
        }

        return array_key_exists((string) $key, $this->mappedAttributes);
    }
public function hasMapping($key)
    {
        if (is_null($this->mappedAttributes)) {
            $this->parseMappings();
        }

        return array_key_exists((string) $key, $this->mappedAttributes);
    }
public function hasMapping ( $ key ) { if ( is_null ( $ this -> mappedAttributes ) ) { $ this -> parseMappings ( ) ; } return array_key_exists ( ( string ) $ key , $ this -> mappedAttributes ) ; }
Determine whether a mapping exists for an attribute.

@param  string $key
@return boolean
Determine whether a mapping exists for an attribute .