Is it necessary?
It would be better to raise an exception, if it could happen.