changed the return type to TRUE for build_message, minized if block with ternary