Skip to content

Commit

Permalink
updated: helper
Browse files Browse the repository at this point in the history
  • Loading branch information
nahid committed Aug 25, 2019
1 parent 0003fda commit 674b7a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion helpers/presento.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ function is_collection(array $arr) : bool
if (!is_array($arr)) {
return false;
}
$first = reset($arr);
//$key = key($first);

return isset($arr[0]) && is_array($arr[0]);
return isset($first) && is_array($first);
}
}

0 comments on commit 674b7a0

Please sign in to comment.