If the user makes a mistake a pass a wrong argument, I think it's better he's shown a PHP error (which is also logged), instead of the argument being *silently* ignored. If you really want this array check, you should add some treatements if the check fails.