Implemented guava-like preconditions.