Can't you just take advantage of the way nil works and change this to `[categoryData count] > 0`?