This is equivalent to the nil check on line 7, it's needed for the API semantics