Check for object length since focused() always returns an object

This never evaluated to true since the focused function always returned an object.