Only execute callback if provided in base.js