private int checkActiveTransportInt(string value) { if (String.IsNullOrEmpty(value)) { Debug.Log("Error: Empty field"); return 0; } return (int.Parse(value)); }