Added isParamRef() to check if parameter is a ref