is there no easier way than importing an external library to check this?