lets use preconditions from guava. it will throw more meaningful exceptions