Nitpick: if `$offset` is always >= 0, there's no more need checking `$count === 0`