Programmatically check whether it is