How can I make a switch for cases when a query parameter is null? - BuildShip