added condition for when there are no parameters
Merge pull request #13 from atran046/master

added condition for when there are no parameters