check item before checking if expanded