Removed redundant nesting check