Added helper method to catalog controller to simplify
added comment