Make it case insensitive
Return instead of break
Merge pull request #6667 from antonioribeiro/envCaseInsensitive

Make env() helper case insensitive