However, if β-galactosidase is present, it hydrolyzes the ONPG molecule into galactose and ortho-nitrophenol.
The presence of β-galactosidase facilitates the breakdown of ONPG into galactose and ortho-nitrophenol.