Update baseQueryPositionCheck.php

Removed unused variables