public function isCollectable($data) { if (!is_array($data)) { return false; } return is_array(reset($data)); }