Function hasAnyLongTermMemoryScope