protected function isCollection($data)
    {
        $isCollection = false;

        if ($data === null) {
            return $isCollection;
        }

        if (!$this->isRecord($data)) {
            $isCollection = true;
        }

        return $isCollection;
    }
protected function isCollection($data)
    {
        $isCollection = false;

        if ($data === null) {
            return $isCollection;
        }

        if (!$this->isRecord($data)) {
            $isCollection = true;
        }

        return $isCollection;
    }
protected function isCollection ( $ data ) { $ isCollection = false ; if ( $ data === null ) { return $ isCollection ; } if ( ! $ this -> isRecord ( $ data ) ) { $ isCollection = true ; } return $ isCollection ; }
Tests the current response data to see if one or more records were
returned.

@param array|Collection $data

@return bool
Tests the current response data to see if one or more records were returned .