check typeof instead of ! for auto-collection