helper functions for checking item selections