I would suggest returning the variable 'done'. It will make the method much clearer.