How to check if type is array? - Theo's Typesafe Cult