deal with empty param for GET methods