You can avoid the call to `in_array` if the returned value is either `null`, `true` or `false`