nit: you probably don't need this check because your building the object yourself.