Fix argument check that caused "Undefined offset" warnings when script was called without arguments.
Merge pull request #1 from jowiho/master

Fix argument check that caused "Undefined offset" warnings...