added empty array checks to manager