does checking before doing network call