Updated methods using NS assertions to fail silently if NS assertions are disabled.