added composer condition incase no composer exists