Fix wrong return value type

It should return boolean that shows whether succeeded or not.