In addition to the accepted answer:
Due to a "specialty" in Powershell allways compare Null to your variable, i.e.:
if ($null -ne $SEL)