Implementing formatters for isAlertPresent and isConfirmationPresent
commands