more nil guarding, because nil guarding is my most favorite thing