Some error checking and the code is 1 byte less ;-)
Merge pull request #1 from hunslater-magento/master

Some error checking and the code is 1 byte less ;-)