check if resource was alreaded initialized