Function hasActiveQuest