check if resource != empty