Extracting logig for conjured item in separate if