Optimizing if statement when creating client requests