def isSafe(row,
           column,
           oblique,
           oblique_inv,
           ctrl_line,
           ctrl_oblique,
           ctrl_obliqueinv):
    """Check if it is safe to put a queen at that position

    Args:
      row (int): row number
      column (int): column number
      oblique (array): for the diagionales
      oblique_inv (array): for the diagionales
      ctrl_line (array): for the rows
      ctrl_oblique (array): for the diagionales
      ctrl_obliqueinv (array): for the diagionales

    Returns:
      [boolean]: is-it safe to put a queen at that position
    """

    if ctrl_oblique[oblique[row][column]] or \
       ctrl_obliqueinv[oblique_inv[row][column]] or ctrl_line[row]:
        return False
    return True