Explicitely handle nil functions.
Use 2 args Object.create only when needed.