[BUGFIX] Ensure valid arguments for array_chunk

Fixes #637
`0 >= $count` and return an empty array early. The `$count` is very likely to come from a source that's dynamic.