Implement a function to check if a string is a valid integer, handling leading zeros, signs, and invalid characters (for example, convert "00344" to 344, "-324" to -324, and identify "fds332" as invalid). The function must return the parsed integer for valid input and None for invalid input. Accept an optional leading + or -, followed by one or more ASCII digits; do not accept whitespace or other characters.
def parse_integer(s):