scope_name method returns nil instead of raising error