This only does something if the assets are being served from the filesystem, which is never the case in production where this check matters.  So essentially this check is useless.