What's wrong with this PHP array_search check?

What's wrong with this PHP array_search check in an allowlist. The PHP code treats index 0 as false, so the first allowed user is rejected. In PHP access control this silently blocks valid requests.

#whatswrongwiththisphpcode #phpbug #phpproductionbug #phpdebugging #phpbackend #phpcodereview #phpsecurity #phpperformance #phpreliability #phpapi #phpwebdevelopment #phpengineering #phparraysearch #phpin...

https://www.youtube.com/watch?v=8XHDpL1oR88

Whats wrong with this PHP array_search check? #phpapi

YouTube