checking whether channel is opne