Code review: replace 'or' statement with in_array