documented messages

added hasMessages method