wtf is this check anyway?
this will always fail on the server, which leads me to believe that it's never run there.

ergo: why the if CLIENT check above?