Check for an empty array before testing for :all in sanitize methods