Add condition to parse payload