Calls cb only if passed as argument