code/libraries/joomlatools/library/model/state/state.php
public function isEmpty(array $exclude = array())
    {
        $states = $this->getValues();

        foreach($exclude as $state) {
            unset($states[$state]);
        }

        return (bool) (count($states) == 0);
    }
public function isEmpty(array $exclude = array())
    {
        $states = $this->getValues();

        foreach($exclude as $state) {
            unset($states[$state]);
        }

        return (bool) (count($states) == 0);
    }
public function isEmpty ( array $ exclude = array ( ) ) { $ states = $ this -> getValues ( ) ; foreach ( $ exclude as $ state ) { unset ( $ states [ $ state ] ) ; } return ( bool ) ( count ( $ states ) == 0 ) ; }
Check if the state information is empty

@param   array   $exclude An array of states names to exclude.
@return  boolean TRUE if the state is empty, otherwise FALSE.
Check if the state information is empty