added object empty check
1.0.8