adding check to avoid use of http_raw_post_data