def find_arg_by_name(decls, name):
    """Find argument in params with name.
    Return None if not found.

    Args:
        decls - list of Declaration
        name  - argument to find
    """
    if decls is None:
        return None
    for decl in decls:
        if decl.name == name:
            return decl
    return None