Changing break to return false to break out of loop.