Replacing `isLiteral` with the existing `viewLiteral`