Checking outerHeight definition before setting default value