update for handling empty controller folders