If possible, use yoda conditions. Also, why are you skipping on `null`?