$pos can be 0, so comparing it to false is exactly the way it should be done