Make sure the path arrays only contain strings
Use a case statement