this method is pretty weird. the return value is pretty weird as well. if the method is modifying any of the arguments, I will recommend to return the modified value instead of a boolean.