No need for the if statement, you can return the return value of in_array()