Fixes #1, allow prim.all to work with empty array