public function isEmptyProperty($property)
    {
        foreach ($this->models as $model) {
            if ($model->$property) {
                return false;
            }
        }

        return true;
    }
public function isEmptyProperty($property)
    {
        foreach ($this->models as $model) {
            if ($model->$property) {
                return false;
            }
        }

        return true;
    }
public function isEmptyProperty ( $ property ) { foreach ( $ this -> models as $ model ) { if ( $ model -> $ property ) { return false ; } } return true ; }
Return false if there is at least one non-empty property of a model.

@param  string  $property
@return boolean
Return false if there is at least one non - empty property of a model .