added a if for the case when defaults don't exist
Merge pull request #40 from diasdavid/master

added a if for the case when defaults don't exist