Update src/Dwsla/ApiGateway/ApiGateway.php

variable check