fix for #4
check self.opts not set opts to blank object
Merge pull request #5 from edwellbrook/patch-1

fix for #4