Why it returns integer? It is private method, so it is cheap to change and all its usage ignore return value or check if it failed or not. So simple boolean return is fine.