I am running the following code:

if(is_array($check)) {
                foreach($check as $val) {
                    if($_SERVER['PHP_SELF']==$val) {
                        $show = false;
                        break;
                    } else {
                        echo "<p>".$_SERVER['PHP_SELF']."!=".trim($val)."</p>";
                    }
                }
            }

And I am getting the following output:

/client/scheduled.php!=/client/scheduled.php

Hopefully it's not something dumb on my part, I appreciate any advice.