This changes remove PHP 8.1 deprecate warning when stripos getting null values by checking null values before passing it into strpos