If `$assetFile === null` it means it's not an asset url and you should return null. Your "react" handling should be done only in case of `!file_exists($assetFile)`