checking resource before make request