Adds a checking of offset

There are some unnecessary parameters that are not presented in a response by default. This PR adds the verification to avoid php notices.