Why are we checking the type here?