question: public boolean isDisplayedExpectingComponents ( ) { boolean result = false ; if ( conditions . isConditionMet ( visibilityOf ( window ) ) ) { if ( components . isEmpty ( ) ) { closeButton . click ( ) ; } else { result = true ; } } return result ; }
target:  This check contains a workaround for an issue in AEM 6.1, when after the deploy occasionally Insert Window contains an empty list.