TiUtils returns the default if the 'dictionary' is nil, so you don't need to create an empty dict. Nil is sufficient an argument here and below. The other thing is that if someone does foo.setContentInsets({top...},{animated:false}), you will NOT get an array. Instead, you should implement -(void)setContentInsets:(NSDictionary*)args withObject:(id)object