Use underscore to check for empty urls object.

Just ran into this bug, since the urls object is defined in the initial extend it always passes the check for an existing urls object.

Changing it to use underscore to check that the object actually has some values seems to work.