0 ) { return $advertised; } if ( is_string( $advertised ) && ctype_digit( $advertised ) ) { return (int) $advertised; } return 0; } }