def queenCanTattack(board, size, row, column):
    """Check if the new queen will not be able to attack an other one.

    Args:
      board (array): board on which the queen will be
      size (int): size of the board
      row (int): row position on the board
      column (int): column position on the board

    Returns:
      [boolean]: True, if unable to attack
    """

    can_t_attack = True

    # check cardinals
    for idx_row in range(size):
        if idx_row != row and board[idx_row][column] == 1:
            return not can_t_attack

    for idx_column in range(size):
        if idx_column != column and board[row][idx_column] == 1:
            return not can_t_attack

    # check diagonals
    for idx_row, idx_column in zip(range(row - 1, -1, -1),
                                   range(column + 1, size)):
        if board[idx_row][idx_column] == 1:
            return not can_t_attack

    for idx_row, idx_column in zip(range(row + 1, size),
                                   range(column + 1, size)):
        if board[idx_row][idx_column] == 1:
            return not can_t_attack

    for idx_row, idx_column in zip(range(row - 1, -1, -1),
                                   range(column - 1, -1, -1)):
        if board[idx_row][idx_column] == 1:
            return not can_t_attack

    for idx_row, idx_column in zip(range(row + 1, size),
                                   range(column - 1, -1, -1)):
        if board[idx_row][idx_column] == 1:
            return not can_t_attack

    return can_t_attack