javascript single-fetch functions call back even if no result