Yeah, it's just a simple check and may be useful anywhere else. :)