Fix isVisible to account for non-present element

else
  false