File: Check for empty deps prior to returning deps

- Check the contents of the _deps attribute prior to returning deps in
  get_deps() method
- Return an empty list if the _deps attribute is undef