Make is_circular utility function private