Updated isImportant check