I believe the WibiData guys would encourage the use of Guava Preconditions for this check.