prefer to bail out early
make sure that dequeue with count == 0 returns nil
prefer positive comparison