bash check if key exists in associative array