A modified Fritz John optimality criterion