Adding my solution for dinoDex exercise

you make the `temp != nil` check multiple times here. refactor it out of the `if/elsif`s so you only check it once.