Skip to content

Commit 674b7a0

Browse files
committed
updated: helper
1 parent 0003fda commit 674b7a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

helpers/presento.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ function is_collection(array $arr) : bool
6262
if (!is_array($arr)) {
6363
return false;
6464
}
65+
$first = reset($arr);
66+
//$key = key($first);
6567

66-
return isset($arr[0]) && is_array($arr[0]);
68+
return isset($first) && is_array($first);
6769
}
6870
}

0 commit comments

Comments
 (0)