split long if statement conditions into predefined booleans
add convenience methods for checking message status