Guarded references to client side only objects on server side