needs_interval: return if no previous backup and refactor code

Signed-off-by: Eddy Petrișor <eddy.petrisor@gmail.com>