Is it possible to detect if the cellular network is available in Android?

view story

http://stackoverflow.com – I have created an app that can send text message on a click of a button but strange problem is that when there no coverage the app force closes or sends in no information. so I would like check if there is any cellular coverage if so I am OK with sending SMS or else please try again! Is this possible? Thanks! (HowTos)