Only calculate visibility on non-nil cells