Commented out unused var and corrected prop check