returning empty dict if entities is none