checking for chains contains