Extracting logig for sulfuras item in separate if