Remove offset check. Checking the return value is sufficient.