For me a method like that should either return true or false or throw exceptions. But doing both is not valid from my point of view.