Extracting code from addAnimalToPen method and creating two more methods: checkIfPensExist and checkIfPenValid