Boole is similar like the HeavisideTheta function and it is used here to differentiate between two boundary conditions, to overcome the confusion I have now replaced it with straight forward HeavisideTheta
Boole
HeavisideTheta
What do you mean by Boole?