Changed local variable names to be easier to understand
Added View.isEmpty() to determine if an OI has EIs or not