last method check for null list