refactored .where to .exists? faster and cleaner