I've actually just tried a crude solution by using a <div style="display:none;"> to hide the output of the echo statement! Doesn't seem very elegant, but it does work.