[HttpFoundation] Fixed isSecure() check to be compliant with the docs