strict comparison of requests to stop recursion from type juggling

@cuphalfempty was getting a "Nesting level too deep – recursive dependency?" error, which we tracked down to this line.

This post explains the root cause of the problem - http://www.richardlord.net/blog/php-nesting-level-too-deep-recursive-dependency.