Ammended the getDetail method to not return detail if there isn't any