[MRG] Input validation refactoring

Refactor input validation to make it more consistent.

Todo
* [ ] Tests
* [x] docstrings
Could you add that a copy might be trigger if necessary?