public static boolean isFailure(List<Action> actions){
  return actions.isEmpty();
}

public static boolean isFailure ( List < Action > actions ) { return actions . isEmpty ( ) ; }
checks whether a list of actions is empty .
