Can we move this to the in_array() statement 3/4 lines below? Just seems better consistency