Update Genre.php

corrected triplicate code