Adding a foreach array check to user role loop to avoid throwing a notice when no roles are found.