add member safe in Media model, add checking on it condition to remove Media