use if with isPublicApiInUse, this is "right" logic, don't remove it.