Larabros\Elogram\Http\Response::isCollection PHP Method

isCollection() protected method

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