public function has($key)
    {
        return ! collect(is_array($key) ? $key : func_get_args())->contains(function ($key) {
            return is_null($this->get($key));
        });
    }
public function has($key)
    {
        return ! collect(is_array($key) ? $key : func_get_args())->contains(function ($key) {
            return is_null($this->get($key));
        });
    }
public function has ( $ key ) { return ! collect ( is_array ( $ key ) ? $ key : func_get_args ( ) ) -> contains ( function ( $ key ) { return is_null ( $ this -> get ( $ key ) ) ; } ) ; }
Checks if a key is present and not null.

@param  string|array  $key
@return bool
Checks if a key is present and not null .