Refactored checkFactAvailability and added availability check for facts command. #6