optimized _.defaults method