optional where on get entities
task helper that won't create new task if not desired