It’s up to the DEV who did the app why he put the attribute on false even the element is there.
/*
* Use this method to check if an element is not present. If the element is
* present in the page source, test will fail, if element is not present, test
* will continue. Try to modify the implementation per your need
*/
public void validateElementIsNotPresent(MobileElement element1) {
WebDriverWait wait = new WebDriverWait(driver, 1, 100);
try {
if (wait.until(ExpectedConditions.visibilityOf(element1)) != null) {
Assert.assertFalse(element1.isDisplayed());
}
} catch (Exception e) {
log.info("Element not present, we are good here!");
log.debug(e);
}
}