Check if type is a list

How do you check if variable is a list? Assuming that the variable is a local variable

  Discussion posts and replies are publicly visible