- Check if it is request body search. If no payload sent, throw bad request exception. Check if variable is an array before running it through foreach. Fix comparison operator issue. User identical operator. Fix other minor issues.