I have to check if my property file is empty for certain label based on that I have to render the element but even when the label is empty i still get the element displaying key
You can use ResourceBundle#containsKey() for this.
You'd better not rely on default format of missing keys as this can be overriden by a custom resource bundle resolver.