Refactored is_x boolean methods in unit module.
Merge pull request #362 from rockdoc/units_is_x

Refactored is_x boolean methods in unit module.