Fixed promise callbacks function checks