Function isValidDirectionList

Returns true if the given string or array is a list of valid directions.