Do you mean `if (type == "PLAYLIST")` block?