src/Utilities/Arr.php
public function isEmpty($key = null)
    {
        if ($key === null) {
            return empty($this->data);
        }
        return empty($this->data[$key]);
    }
public function isEmpty($key = null)
    {
        if ($key === null) {
            return empty($this->data);
        }
        return empty($this->data[$key]);
    }
public function isEmpty ( $ key = null ) { if ( $ key === null ) { return empty ( $ this -> data ) ; } return empty ( $ this -> data [ $ key ] ) ; }
is empty will return if the specified key is empty if no key provided it will check itself.
is empty will return if the specified key is empty if no key provided it will check itself .