          return frame in self.data.keys()
  
      def frame_has_faces(self, frame):
          """ Return true if frame exists and has faces """
          return bool(self.data.get(frame, list()))
  
      def frame_has_multiple_faces(self, frame):
          """ Return true if frame exists and has faces """
          if not frame:
              return False
 
</s> remove         return frame in self.data.keys()
 </s> add         retval = frame in self.data.keys()
        logger.trace(retval)
        return retval </s> remove             return False
        return bool(len(self.data.get(frame, list())) > 1)
 </s> add             retval = False
        else:
            retval = bool(len(self.data.get(frame, list())) > 1)
        logger.trace(retval)
        return retval </s> remove         return next(key for key in self.data.keys()
                    if key.startswith(frame))
 </s> add         retval = next(key for key in self.data.keys()
                      if key.startswith(frame))
        logger.trace("Requested: '%s', Returning: '%s'", frame, retval)
        return retval </s> remove         return len(self.data.get(frame, list()))
 </s> add         retval = len(self.data.get(frame, list()))
        logger.trace(retval)
        return retval
        retval = bool(self.data.get(frame, list()))
        logger.trace(retval)
        return retval
          return frame in self.data.keys()
  
      def frame_has_faces(self, frame):
          """ Return true if frame exists and has faces """
        retval = bool(self.data.get(frame, list()))
        logger.trace(retval)
        return retval
  
      def frame_has_multiple_faces(self, frame):
          """ Return true if frame exists and has faces """
          if not frame:
              return False
keep keep keep keep replace keep keep keep keep keep
 Logging (#541)

* Convert prints to logger. Further logging improvements. Tidy  up

* Fix system verbosity. Allow SystemExit

* Fix reload extract bug

* Child Traceback handling

* Safer shutdown procedure

* Add shutdown event to queue manager

* landmarks_as_xy > property. GUI notes + linting. Aligner bugfix

* fix FaceFilter. Enable nFilter when no Filter is supplied

* Fix blurry face filter

* Continue on IO error. Better error handling

* Explicitly print stack trace tocrash log

* Windows Multiprocessing bugfix

* Add git info and conda version to crash log

* Windows/Anaconda mp bugfix

* Logging fixes for training 
lib/alignments.py