check for valid options object
Merge pull request #822 from snowkeeper/0.2.x-email

check for valid options object