def cell_edge_detection(cell, m):
    """
    Detects if a cell is an edge of a fire growth model by checking the 
    Moore neighborhood of the cell. 
    cell: Tuple of x,y coordinates for a given cell
    m: array o the fire spread area
    
    Returns True if cell is an edge and False if not 
    """ 
    x = cell[0]
    y = cell[1]
    
    matrix_boundaries = [
    m[x][y+1],
    m[x+1][y+1],
    m[x+1][y],
    m[x+1][y-1],
    m[x][y-1],
    m[x-1][y-1],
    m[x-1][y],
    m[x-1][y+1] ]
    
    if any(boundary==0 for boundary in matrix_boundaries):
        return True
    else: 
        return False