Check if provided energywindow is ok.