Corrected conditional to use salt['match.grain']('', '') for correctness and clarity.