add nil check
Merge branch 'new_features' into category