provide fallback to prevent TypeErrors
Merge pull request #1 from jarofghosts/master

provide fallback to prevent TypeErrors