Refactored (Array Declaration+ \n + Extra Condition)