Check If Service Broker is Enabled or Not in SQL Server

Service broker is used for various purposes including database change notification etc and sometime we need to ensure that service broker is enabled for database or not , To check it use the following code snippet

when you run preceding code snippet, it will return following one of the output

I hope preceding code snippet useful for all readers , If you have any suggestion then please contact me.