Fix: Check file before performing http