Fix isVisible to account for non-present element