Add more invalid input checks
Merge pull request #1 from alancutter/cleanUpFooTypes

Add more invalid input checks