Added else condition to validate to False if not a list
Added else condition to validate to False if not a list