Fixed PHP condition and removed 'box' related code