Updated the 'false' case for hasBadWindow