if you don't need to know the number of entries, use !empty() instead of sizeof()