Refactoring of function names.

* Renamed `isValidTypes` to `invalidTypeParams`
* Added a new `isValidTypes` that returns a Boolean