added isrequest value checking logic