I generally use empty. Im not sure why people would use count really – If the array is large then count takes longer/has more overhead. If you simply need to know whether or not the array is empty then use empty.
I generally use empty. Im not sure why people would use count really – If the array is large then count takes longer/has more overhead. If you simply need to know whether or not the array is empty then use empty.