technically, this implementation is wrong (it is already the case in the current code). the method is not expected to return a boolean but an integer.