Memory allocation, emty version check