Check if prototype is defined