Making the number of object check a little better