I know that this approach was present in the file already, yet maybe there is a different way to detect this instead of browser sniffing?