Agree with @bwoester that this method is not useful. Such a check is not atomic anyway.