fixes #7 validate arguments

All falsy parameters are filtered out of the arguments array passed to
doCommand()