Using defined()
Fixed typo
Updated documentation