added check for non-empty ear apps array